From: Philip Prindeville Date: Tue, 2 Dec 2025 04:26:23 +0000 (-0700) Subject: bind: save out served domains on service stop X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=605a457cacef2df88f6ac20c2533f54071ed4f7c;p=feed%2Fpackages.git bind: save out served domains on service stop If named gets stopped, then started again, but isc-dhcpd isn't also restarted, then we want named to at least have the existing content. Signed-off-by: Philip Prindeville --- diff --git a/net/bind/Makefile b/net/bind/Makefile index 2eb7c30738..cfea57f22e 100644 --- a/net/bind/Makefile +++ b/net/bind/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=bind PKG_VERSION:=9.20.15 -PKG_RELEASE:=1 +PKG_RELEASE:=2 USERID:=bind=57:bind=57 PKG_MAINTAINER:=Noah Meyerhans diff --git a/net/bind/files/named.init b/net/bind/files/named.init index 08a142e3ca..e626149c43 100644 --- a/net/bind/files/named.init +++ b/net/bind/files/named.init @@ -20,6 +20,10 @@ reload_service() { rndc -q reload } +stop_service() { + rndc stop +} + start_service() { user_exists bind 57 || user_add bind 57 group_exists bind 57 || group_add bind 57